<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .Box {
            width: 850px;
            height: 500px;
            border-left: 2px solid black;
            border-bottom: 2px solid black;
            display: flex;
            align-items: flex-end;
            margin: 0 auto;
        }

        .box {
            width: 40px;
            background-color: pink;
            margin: 0 50px;
            padding: 0 10px;
            position: relative;
        }

        .box p {
            position: absolute;
            bottom: 100%;
            width: 50px;
        }

        .box b {
            position: absolute;
            top: 100%;
            width: 100px;
            left: -5%;
        }
    </style>
</head>

<body>
    <!-- <div class="Box">
        <div class="box">
            <p>易业煜</p>
        </div>
        <div class="box">
            <p>第二季度</p>
        </div>
        <div class="box">
            <p>第三季度</p>
        </div>
        <div class="box">
            <p>第四季度</p>
        </div>
    </div> -->
    <script>
        let arr = []
        for (i = 0; i < 4; i++) {
            let num = +prompt(`第${i + 1}季度数据(0-500)`)
            arr.push(num)
        }
        document.write(`
        <div class="Box">
             <div class="box" style="height:${arr[0]}px"><p>${arr[0]}</p><b>易业煜</b></div>
             <div class="box" style="height:${arr[1]}px"><p>${arr[1]}</p><b>第二季度</b></div>
             <div class="box" style="height:${arr[2]}px"><p>${arr[2]}</p><b>第三季度</b></div>
             <div class="box" style="height:${arr[3]}px"><p>${arr[3]}</p><b>第四季度</b></div>
        </div>
            `)
    </script>
</body>

</html>